package tw.com.softleader.movie.service;

import java.util.List;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.movie.dao.MovieDao;
import tw.com.softleader.movie.entity.Movie;

@Service
public class MovieService {
	
	private static Logger log = LoggerFactory.getLogger(MovieService.class);
	
	@PostConstruct
	public void initMethod(){
		log.debug("There is initMethod !! Boom ! ");
	}
	
	
	@Autowired
	private MovieDao movieDao;

	public List<Movie> getAll(){
		return movieDao.getAll();
	}
}

